package com.base.strategy.factory;

import com.base.strategy.enum_type.BooleanToIntEnum;

public class BooleanToIntFactory {

    /**
     * TODO Boolean转int
     *
     * @param isBoolean
     */
    public static int typeToInt(Boolean isBoolean) {

        return BooleanToIntEnum.valueOf(isBoolean.toString().toUpperCase()).toInt();
    }
}
